//
//  RootViewController.swift
//  imitationMicroblog
//
//  Created by 季晓侠 on 16/2/23.
//  Copyright © 2016年 季晓侠. All rights reserved.
//

import UIKit

class RootViewController: UIViewController {
    //MARK :-公共属性
    ///表格视图
    lazy var tableView = UITableView(frame: CGRectZero,style: .Plain)
    
    lazy var refreshControl = UIRefreshControl()
    
    //MARK :视图生命周期
    override func loadView() {
        view = tableView
        tableView.addSubview(refreshControl)
        refreshControl.addTarget(self, action: "loadData", forControlEvents: .ValueChanged)
    
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        loadView()
   
    }
    ///加载数据方法 实际数据加载应放于子类中
    func loadData() {
     
    
    }
    
}
